package cn.fch.gotrip.dao;

import cn.fch.gotrip.entity.Hotel;
import cn.fch.gotrip.entity.HotelTheme;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: gotrip
 * @description:
 * @CreatedBy: fch
 * @create: 2023-01-18 23:21
 **/
@Repository
public interface HotelDao {

    int updateHotel(Hotel hotel);

    int addHotel(Hotel hotel);

    int updateHotelHtml(Hotel hotel);

    List<Hotel> queryAllHotelByThemeId(@Param("themeId") Integer themeId);

    Hotel queryHotelById(@Param("id") Integer id);

    List<HotelTheme> queryAllHotelTheme();

    Boolean isExistById(@Param("id") Integer id);
}
